package com.miyake.client.datamanage;

import com.google.gwt.user.client.ui.Panel;

public class FixedPageFactory implements PageFactory {

	private NodeUpdateHandler updateHandler;

	public FixedPageFactory(NodeUpdateHandler updateHandler) {
		this.updateHandler = updateHandler;
	}
	
	@Override
	public void createChart(NodeProperty node, Panel panel) {
		new ShowFixedPlot(node, panel, 400, 200, updateHandler) {

			@Override
			protected void onTextUpdate(String nodeKey) {
				// TODO Auto-generated method stub
				
			}
			
		};
	}

	@Override
	public void createTable(NodeProperty node, Panel panel) {
		new ShowFixedTable(node, panel);
	}

	@Override
	public void createText(NodeProperty node, Panel panel) {
		new ShowFixedText(node, panel);
	}

	@Override
	public void createImage(NodeProperty node, Panel panel) {
		new ShowImage(node, panel, null, null);
	}

	@Override
	public void createPaper(NodeProperty node, Panel panel) {
		;
	}

	@Override
	public void createData(NodeProperty node, Panel panel) {
		// TODO Auto-generated method stub
		
	}

}
